<%-- 
    Document   : creaEvento
    Created on : 17-feb-2012, 11.19.50
    Author     : ciro
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <script src="JS/style.js" type="text/javascript"></script>
        <link rel="stylesheet" type="text/css" href="style.css"/>
        <link rel="stylesheet" type="text/css" media="all" href="jsDatePick_ltr.min.css" />
        <script type="text/javascript" src="jsDatePick.min.1.3.js"></script>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script type="text/javascript">
	/*window.onload = function(){
		new JsDatePick({
			useMode:2,
			target:"inputField",
			dateFormat:"%d/%m/%Y"
			/*selectedDate:{				This is an example of what the full configuration offers.
				day:5,						For full documentation about these settings please see the full version of the code.
				month:9,
				year:2006
			},
			yearsRange:[1978,2020],
			limitToToday:false,
			cellColorScheme:"beige",
			dateFormat:"%m-%d-%Y",
			imgPath:"img/",
			weekStartDay:1
		});
	};*/
</script>

        <title>Crea evento</title>
    </head>
    <body>
        <div id="header">
            <%@include file="header.jsp" %>
        </div>
        <div id="content">
            <form action="/EsameSSCSWeb-war/Servlet?action=inserisciEvento" method="post">
                <fieldset>
                    <legend>
                        Creazione evento:
                    </legend>
                    <table border="0">
                        <tr>
                            <td>
                                Locale organizzatore:
                            </td>
                            <td>
                                <input type="input" readonly="readonly" name="locale" value="<%= session.getAttribute("login")%>"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Nome evento:
                            </td>
                            <td>
                                <input type="text" name="nome"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Numero di posti:
                            </td>
                            <td>
                                <input type="text" name="posti"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Descrizione:
                            </td>
                            <td>
                                <textarea name="descrizione"></textarea>
                            </td>
                        </tr>
                                            <tr>
                            <td>
                                URL immagine:
                            </td>
                            <td>
                                <input type="text" name="immagine"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Data:
                            </td>
                            <td>
                                <input name ="data" type="text" size="12" id="inputField" />
                            </td>
                        </tr>
                    </table>
                    <p>
                        <button id="submit" type="submit" onclick="return controllo()">Inserisci <img src="img/ok.gif" alt="ok"></button>
                        <button type="reset" onclick="cancella()">Cancella <img src="img/cancel.gif" alt="cancel"></button>
                    </p>
                </fieldset>
            </form>
        </div>
    </body>
    <script type="text/javascript">
    window.onload = function()
            {
                sottobarra=document.getElementById("subbar1");  
                cerca=document.getElementById("cerca");
                sottobarra2=document.getElementById("subbar2");  
                sottobarra3=document.getElementById("subbar3");
                login=document.getElementById("login");
                cerca.style.display="none";
                sottobarra.style.display="none";
                login.style.display="none";
                if(sottobarra2!=null)
                    sottobarra2.style.display="none";
                else
                    sottobarra3.style.display="none";
                new JsDatePick({
			useMode:2,
			target:"inputField",
			dateFormat:"%d/%m/%Y"
			
		});
            }
            </script>
</html>
